package com.pn.warehouse.service;

import com.pn.warehouse.entity.InStore;
import com.pn.warehouse.entity.Purchase;
import com.pn.warehouse.entity.Result;
import com.pn.warehouse.page.Page;

public interface PurchaseService {

    //添加采购单
    public Result insertPurchase(Purchase purchase);

    //分页查询采购单信息
    public Page queryPurchasePage(Page page, Purchase purchase);

    //根据id删除采购单
    public Result removePurchaseById(Integer purchaseId);

    //根据id修改采购单采购数量和实际采购数量
    public Result setNumById(Purchase purchase);

    //添加入库单
    public Result insertInStore(InStore inStore, Integer buyId);

}
